<%@ page language="java" contentType="text/html; charset=UTF-8"
			    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<form action="${pageContext.request.contextPath }/goods/delAll.do" method="post">
	<table width="100%" border=1>
	<tr>
	<td><input type="submit" value="批量删除"/></td>
	</tr>
	</table> 
商品列表：
	<table width="100%" border=1>
		<tr>
			<td>名称</td>
			<td>原价</td>
			<td>最新价</td>
			<td>卖点</td>
			<td>描述</td>
			<td>生产日期</td>
			<td>操作</td>
		</tr> 
		<c:forEach items="${lists }" var="item" varStatus="status">
			<tr>  
				<td>
					<input type="checkbox" name="ids" value="${item.id }"/>
					<%-- <input type="hidden" name="itemsList[${status.index }].id" value="${item.id }"/> --%>
				</td>
				<td>${item.name }</td>
				<td>${item.oldPrice}</td>
				<td>${item.newPrice}</td>
				<td>${item.sellPoint}</td>
				<td>${item.desc}</td>
				<td><fmt:formatDate value="${item.createdate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><a href="${pageContext.request.contextPath }/goods/edit.do?id=${item.id}">修改</a></td>
			</tr>  
		</c:forEach>
	</table> 
</form>